<?php
class group extends SDO_Controller
{
	public function __construct()
	{
		parent::__construct();
		$this->load->model("groups");
	}

	public function getGroups()
	{
		$row	= array();
		$row	= $this->groups->getAllGroups();
		echo json_encode($row);
	}

	public function getGroupMembersByGroupId()
	{
		$group_id	= $this->getpara("group_id");
		$rows		= array();
		$rows		= $this->groups->getGroupMembersByGroupId($group_id);
		echo json_encode($rows);
	}
}